package com.heima.hellospring.controller;

import com.heima.hellospring.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/teacher")
public class TeacherController {
    @Autowired
    private TeacherService teacherService;

    //    使用ajax显示数据
    @GetMapping("/list")
    public String getlist() {
        return "/teacher/list";
    }
}